package com.antler.smt.portal.mapper;

import com.antler.smt.entity.ReceivingAddressEntity;
import com.antler.smt.response.admin.GetReceivingAddressListResp;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReceivingAddressInfoMapper {

    /**
     * 获取当前会员收获地址列表
     * @param memberId 会员id
     * @return 收获地址实体
     */
    List<GetReceivingAddressListResp> getAddressByMember(Long memberId);

    /**
     * 删除一条地址记录
     *
     * @param id
     * @return
     */
    int delReceivingAddress(Long id);

    /**
     * 更新收货地址
     *
     * @param receivingAddressEntity
     * @return
     */
    int updateByPrimaryKeySelective(ReceivingAddressEntity receivingAddressEntity);

    void updateByPrimaryKeySelective();
}